﻿using SqlSugar;
using System;

namespace Model
{
    /// <summary>
    /// borrower_attach 表实体类
    /// </summary>
    [SugarTable("borrower_attach")]
    public class BorrowerAttach
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// 借款人id
        /// </summary>
        [SugarColumn(ColumnName = "borrower_id")]
        public long BorrowerId { get; set; }

        /// <summary>
        /// 图片类型（idCard1：身份证正面，idCard2：身份证反面，house：房产证，car：车）
        /// </summary>
        [SugarColumn(ColumnName = "image_type")]
        public string ImageType { get; set; }

        /// <summary>
        /// 图片路径
        /// </summary>
        [SugarColumn(ColumnName = "image_url")]
        public string ImageUrl { get; set; }

        /// <summary>
        /// 图片名称
        /// </summary>
        [SugarColumn(ColumnName = "image_name")]
        public string ImageName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除(1:已删除，0:未删除)
        /// </summary>
        [SugarColumn(ColumnName = "is_deleted")]
        public byte IsDeleted { get; set; }

    }
}
